package cadtoolbox.graphical;
import java.awt.Color;
import java.util.Set;

import cadtoolbox.model.OligoGraph;

import org.apache.commons.collections15.Transformer;


public class MyVertexFillPaintTransformer<V,Paint> implements Transformer<V, Paint> {
	OligoGraph<V,Object> graph;
	Set<V> selected;
	
	MyVertexFillPaintTransformer(OligoGraph<V, Object> g3){
		this.graph = g3;
		this.selected = g3.getSelected();
	}
	
	@Override
	public Paint transform(V arg0) {
		if (graph.getSelected()!=null && graph.getSelected().contains(arg0)){
			return (Paint) Color.BLUE;
		}
		return (Paint) Color.RED;
	}

}
